// by bugbug & alading @ 缥缈水云间, 2003-4-5
inherit NPC;

void do_give();

void create() {
        set_name("卢生", ({"lu sheng","lu", "sheng"}));
   set("long","一个很会做梦的书生。\n");
        set("gender", "男性" );
        set("age", 25);
        set("combat_exp", 100);
        set("attitude", "peaceful");
        set_skill("unarmed", 5);
        set_skill("dodge", 5);
        set_skill("parry", 5);
        set_skill("literate", 5);
        set_skill("force", 5);   
        set_skill("sword", 3);
        set("per", 27);
        set("max_kee", 500);
        set("max_sen", 300);
        setup();
        carry_object("/d/ourhome/obj/linen")->wear();
        carry_object("/d/obj/weapon/sword/changjian")->wield();
        carry_object("/d/obj/misc/pillow");

}

void init()
{
  object ob;
  
   ::init();

	  set("inquiry", ([
		 "name" : "我是卢生，因为做梦名扬天下，你一定听说过我吧。",
		 "here" : "这里就是井水桥，听说这里是由龙王管着！",
		 "黄粱枕" : "你也听说这个神奇的枕头，如果你能告诉我谁帮我扬的名(作者 or 书名)，我就送你一个好了。",
         "pillow" : "你也听说这个神奇的枕头，如果你能告诉我谁帮我扬的名(作者 or 书名)，我就送你一个好了。",
	  ]) );
   add_action("do_give","枕中记");
   add_action("do_give","沈既济");
}
int do_give(string arg)
{
        object me = this_player();
       

        command("give pillow to " + me->query("id"));
}

